home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: Please don't shoot me (newbie question)
- Date: 18 Apr 1996 15:28:12 -0500
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4l68ks$pl7@solutions.solon.com>
- References: <4l0puc$oa9@interport.net> <31766DEC.4EED@datalytics.com>
- Reply-To: seebs@solon.com
- NNTP-Posting-Host: solutions.solon.com
-
- In article <31766DEC.4EED@datalytics.com>,
- Rob Stewart <stew@datalytics.com> wrote:
- >C++ offers function overloading. This means that you can have
- >more than one function with the same name. So long as they take
- >different parameters, they are different functions. This means
- >you can have several versions of Read or Write, for example,
- >that each take different parameters.
-
- And I personally think this is one of the most dangerous ideas
- ever seen. I prefer to get a warning for using something incorrectly.
-
- There are other, perhaps slightly less convenient, ways of accomplishing much
- the same result, without the huge gaping hole in the type system.
-
- MHO, please don't post responses.
-
- We've seen the entire debate before, just wanted to make sure both sides
- showe up once.
-
- [comments about encapsulation]
-
- As previously noted, this can be done in C, although it looks much different.
-
- Mostly the question is how much you want to do yourself, and how much you
- want to have happen magically.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- Unsolicited email is not welcome, and will be billed for at consulting rates.
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-